/**
 * output package name
 */
package com.kingdee.eas.taskmanager;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.StringEnum;

/**
 * output class name
 */
public class TaskState extends StringEnum
{
    public static final String NOEXEC_VALUE = "10";
    public static final String EXECING_VALUE = "20";
    public static final String EXECFAIL_VALUE = "30";
    public static final String EXECSUCCESS_VALUE = "40";

    public static final TaskState noexec = new TaskState("noexec", NOEXEC_VALUE);
    public static final TaskState execing = new TaskState("execing", EXECING_VALUE);
    public static final TaskState execFail = new TaskState("execFail", EXECFAIL_VALUE);
    public static final TaskState execSuccess = new TaskState("execSuccess", EXECSUCCESS_VALUE);

    /**
     * construct function
     * @param String taskState
     */
    private TaskState(String name, String taskState)
    {
        super(name, taskState);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static TaskState getEnum(String taskState)
    {
        return (TaskState)getEnum(TaskState.class, taskState);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(TaskState.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(TaskState.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(TaskState.class);
    }
}